Sedimentary basins in western Peru changed from marine to continental conditions in the Late Cretaceous as a consequence of a generalized vertical uplift . The uplift in northern Peru is thought to be associated with the contemporary accretion of the Pi��n terrane in Ecuador.